package com.wf.bean;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Data;

@Data
@TableName(value = "userwf")  // mybatis-plus 需要指定表的名字
public class UserWf {
    private Integer id;
    private String wfname;
    private Integer wfage;
    // 这个属性不返给前端
    @JsonIgnore
    private String wfpassword;
    private String wfnickname;
    private String wfphone;
    private String wfemail;
    // @TableField(value = "xxx")  指定数据库里的字段名
    private String wfaddress;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }
}
